package com.away.fuckingworld.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseResult {
    private Integer error_code;
    private String errorCode;
    private String message;
    private String traceId;

    protected static final Integer CODE_SUCCESS = 200;
    protected static final Integer CODE_SYSTEM_ERROR = 500;
    protected static final Integer CODE_CLIENT_ERROR = 400;

    public BaseResult(Integer error_code, String message) {
        this.error_code = error_code;
        this.message = message;
    }

    public BaseResult( String errorCode, String message) {
        this.errorCode = errorCode;
        this.message = message;
    }
}
